package hjw.com.dao;

import hjw.com.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>Project:Academic - CommentMapper
 *
 * @author IvanWei玮 -- maste
 * @version 1.0
 * @DataTime 2025/2/13 16:27
 * @since 1.8
 */
@Mapper
public interface CommentMapper {
    /**
     * 添加评论
     * @param map map
     * @return int
     */
    int addComment(Map<String, Object> map);

    /**
     * 删除评论
     * @param id id
     * @return int
     */
    int deleteComment(int id);

    /**
     * 获取评论
     * @param map map
     * @return list
     */
    List<Comment> getComment(Map<String, Object> map);
}
